@import './variables.scss';

$height: 16px;
$drak-main-color: #333;

.workbench-table {
  .module-title-box {
    width: 100%;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .module-title {
      margin: 3px 0;
      height: $height;
      line-height: $height;
      font-family: PingFang SC;
      padding-left: 8px;
      font-weight: 500;
      color: #333333;
      font-size: $height;
      margin-left: 16px;
      border-left: 5px solid $main-color;
    }
  }
  .white-module {
    background-color: #fff;
    border-radius: 2px; 
    overflow: hidden;
    padding-bottom: 1px;
  }
  .search-module {
    .el-collapse-item__content {
      padding-bottom: 0;
    }
    .list-filter-module {
      padding: 0 16px;
      .el-form-item--small.el-form-item {
        margin-bottom: 16px;
      }
      .el-form-item__label, .el-link.el-link--default {
        color: $drak-main-color;
      }
      .el-input__inner {
        border-color: #e5e5e5;
      }
      .el-date-editor--daterange.el-input__inner, .el-select {
        width: 100%;
      }
      .list-filter-operate-btns {
        text-align: right;
      }
    }
  }

  .table-module {
    margin-top: 6px;
    .cursor-point{
      cursor: pointer;
    }
    .header-cell-class {
      height: 40px;
    }
    .table-content {
      padding: 16px;

    }
    .jdf-table {
      clear: both;
      overflow: hidden;
    }
    /* 修改 el-table 边框颜色 */
    .el-table--border th,
    .el-table--border td,
    .el-table--group,
    .el-table--border {
      border-color: rgba(226, 227, 231, 0.5) !important;
    }
    .el-table {
      color: #333;
      .caret-wrapper {
        height: 24px;
      }
      .sort-caret.ascending {
        top: -1px;
      }
      .sort-caret.descending {
        bottom: 1px;
      }
      .cell {
        line-height: 20px;
      }
      .el-table__body tr:hover > td {
        background-color: rgba(74, 144, 229, 0.1);
        color: $main-color;
      }
      .el-table__header-wrapper, .el-table__fixed-header-wrapper {
        .el-table__header {
          table-layout: fixed!important;
        }
        .el-table__body {
          width: 100%;
          table-layout: fixed!important;
        }
        .el-tooltip .el-link {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          word-break: break-all;
          display: block;
        }
        th {
          background: #f1f4f9;
          color: #333;
          font-weight: 600;
          font-size: 14px;
          padding: 6px 0;
        }
      }
      .el-table__cell {
        .primary {
          color: $main-color !important;
          cursor: pointer;
        }
        .info {
          color: #999 !important;
          cursor: none;
          pointer-events: none;
        }
        .danger {
          color: #ff3f3b !important;
          cursor: pointer;
          pointer-events: auto;
        }
      }
    }
    .el-pagination {
      margin-top: 16px;
      padding: 0;
      text-align: right;
      span:not([class*=suffix]), button, .el-pager li,
      .el-select .el-input .el-input__inner,
      .el-pagination__editor.el-input .el-input__inner {
        height: 30px;
        line-height: 30px;
        color: #000;
        font-size: 14px;
        border-radius: 2px;
      }
  
      &.is-background .btn-prev,
      &.is-background .btn-next,
      &.is-background .el-pager li {
        font-size: 14px;
        font-weight: normal;
        margin: 0px 4px;
        &:not(.active) {
          background: #fff;
          border: 1px solid #e5e5e5;
          color: #000;
        }
      }
  
      .btn-prev .el-icon, .btn-next .el-icon {
        color: #999;
      }
  
      .el-pagination__jump {
        .el-pagination__editor {
          padding: 0;
          margin: 0 10px;
        }
        .el-input__inner {
          padding: 0;
        }
      }
  
      .el-pagination__total {
        margin-right: 12px;
      }
  
      .button, .el-pager li, .btn-prev, .btn-next {
        min-width: 32px;
      }
  
      .el-pager li.active {
        cursor: default;
        border: 1px solid $main-color;
      }
    }
  }
  .el-tooltip__popper {
    max-width: calc(100vw - 400px);
  }
}
